package user;

import Opeartion.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Normaluser extends User {
    public Normaluser(){
        this.operation=new Operation[]{
                new ExitSystem(),
                new FindBook(),
                new BorrowBook(),
                new ReturnBook(),
        };
    }
    @Override
    public int meau(){
        System.out.println("***********************");
        System.out.println("1. 查找图书");
        System.out.println("2. 借阅图书");
        System.out.println("3. 归还图书");
        System.out.println("0. 退出系统");
        System.out.println("***********************");
        System.out.println("其输入你的选择：");
        Scanner scanner=new Scanner(System.in);
        int choice=scanner.nextInt();
        return choice;
    }
}
